package com.tyqx.detectcputemperaturesendmessage.controller;

import com.profesorfalken.jsensors.JSensors;
import com.profesorfalken.jsensors.model.components.Components;
import com.profesorfalken.jsensors.model.components.Cpu;
import com.profesorfalken.jsensors.model.sensors.Fan;
import com.profesorfalken.jsensors.model.sensors.Temperature;
import com.sun.mail.smtp.SMTPTransport;
import com.tyqx.detectcputemperaturesendmessage.util.AnalysisUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

@RequestMapping("/test")
@Controller
public class TestController {


    @Resource
    private AnalysisUtil analysisUtil;

    @RequestMapping("/test")
    public Integer test(){
        return analysisUtil.ChiaDebugLogAnalysisUtil();
    }
}
